package com.snowball.demo.exception;


import com.snowball.demo.exception.enums.ResultCode;

/**
 * Description:
 *
 * @Author: genezhao
 * @Date: 2018-06-27
 */
public class ResultException extends RuntimeException{

    private ResultCode resultCode;

    public ResultException(String message) {
        super(message);
    }

    public ResultException(ResultCode resultCode) {
        super(resultCode.getMsg());
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

}
